package com.hp.attendance.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class Menu {
    private int id;
    private String name; //菜单名称
    private int priority; //优先级
    private String path; //菜单地址
    private int pid;  //父菜单id

    public Menu(String name, int priority, String path, int pid) {
        this.name = name;
        this.priority = priority;
        this.path = path;
        this.pid = pid;
    }
}
